package com.oracleoaec.service.impl;

import java.util.List;

import com.oracleoaec.dao.CategoryDao;
import com.oracleoaec.dao.impl.CategoryDaoImpl;
import com.oracleoaec.entity.Category;
import com.oracleoaec.service.CategoryService;

public class CategoryServiceImpl implements CategoryService{
	//显示类型的名字
	private CategoryDao categoryDao;
	public CategoryServiceImpl() {
		categoryDao=new CategoryDaoImpl();
	}
	@Override
	public Category queryCategNameById(long id) {
		return categoryDao.queryCategNameById(id);
	}
	@Override
	public List<Category> queryAllCategory() {
		
		return categoryDao.queryAllCategory();
	}
}
